﻿namespace Vdc.Grid.Design
{
    using Vdc.Grid;
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Windows.Forms.Design;

    public class ColumnTemplateSettingsSetupControl : Form
    {
        private ColumnTemplateSettings _templateSettings;
        private Button BtnCancel;
        private Button BtnOk;
        private Button button3;
        private CheckBox Chk_RowEditTemplateUseQuotes;
        private IContainer components;
        private IWindowsFormsEditorService editorService;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        private GroupBox groupBox3;
        private GroupBox groupBox4;
        private Label label1;
        private Label label10;
        private Label label11;
        private Label label12;
        private Label label13;
        private Label label14;
        private Label label2;
        private Label label3;
        private Label label4;
        private Label label5;
        private Label label6;
        private Label label7;
        private Label label8;
        private Label label9;
        private ComboBox Selector_CancelTemporaryAddedRecord_TemplateId;
        private ComboBox Selector_CancelTemporaryEditedRecord_TemplateId;
        private ComboBox Selector_EditTemplateId;
        private ComboBox Selector_FilterTemplateID;
        private ComboBox Selector_GroupHeaderTemplateId;
        private ComboBox Selector_HeaderTemplateID;
        private ComboBox Selector_ModifyTemporaryAddedRecord_TemplateId;
        private ComboBox Selector_ModifyTemporaryEditedRecord_TemplateId;
        private ComboBox Selector_RemoveTemporaryAddedRecord_TemplateId;
        private TextBox Selector_RowEditTemplateControlId;
        private ComboBox Selector_RowEditTemplateControlPropertyName;
        private ComboBox Selector_TemplateId;
        private ComboBox Selector_UndeleteTemporaryDeletedRecord_TemplateId;

        public ColumnTemplateSettingsSetupControl()
        {
            this.InitializeComponent();
        }

        public ColumnTemplateSettingsSetupControl(ColumnTemplateSettings templateSettings, IWindowsFormsEditorService editorService, string[] templatesIds)
        {
            this.InitializeComponent();
            this._templateSettings = templateSettings;
            this.editorService = editorService;
            this.Selector_CancelTemporaryAddedRecord_TemplateId.Items.Add("");
            this.Selector_CancelTemporaryEditedRecord_TemplateId.Items.Add("");
            this.Selector_EditTemplateId.Items.Add("");
            this.Selector_FilterTemplateID.Items.Add("");
            this.Selector_GroupHeaderTemplateId.Items.Add("");
            this.Selector_HeaderTemplateID.Items.Add("");
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.Items.Add("");
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.Items.Add("");
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.Items.Add("");
            this.Selector_RowEditTemplateControlPropertyName.Items.Add("");
            this.Selector_TemplateId.Items.Add("");
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Items.Add("");
            if ((templatesIds != null) && (templatesIds.Length > 0))
            {
                int num = 0;
                foreach (string str in templatesIds)
                {
                    this.Selector_TemplateId.Items.Add(str);
                    if (this._templateSettings.TemplateId == str)
                    {
                        this.Selector_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.TemplateId))
                    {
                        this.Selector_TemplateId.Text = this._templateSettings.TemplateId;
                    }
                    this.Selector_EditTemplateId.Items.Add(str);
                    if (this._templateSettings.EditTemplateId == str)
                    {
                        this.Selector_EditTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.EditTemplateId))
                    {
                        this.Selector_EditTemplateId.Text = this._templateSettings.EditTemplateId;
                    }
                    this.Selector_HeaderTemplateID.Items.Add(str);
                    if (this._templateSettings.HeaderTemplateId == str)
                    {
                        this.Selector_HeaderTemplateID.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.HeaderTemplateId))
                    {
                        this.Selector_HeaderTemplateID.Text = this._templateSettings.HeaderTemplateId;
                    }
                    this.Selector_FilterTemplateID.Items.Add(str);
                    if (this._templateSettings.FilterTemplateId == str)
                    {
                        this.Selector_FilterTemplateID.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.FilterTemplateId))
                    {
                        this.Selector_FilterTemplateID.Text = this._templateSettings.FilterTemplateId;
                    }
                    this.Selector_GroupHeaderTemplateId.Items.Add(str);
                    if (this._templateSettings.GroupHeaderTemplateId == str)
                    {
                        this.Selector_GroupHeaderTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.GroupHeaderTemplateId))
                    {
                        this.Selector_GroupHeaderTemplateId.Text = this._templateSettings.GroupHeaderTemplateId;
                    }
                    this.Selector_ModifyTemporaryEditedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.ModifyTemporaryEditedRecord_TemplateId == str)
                    {
                        this.Selector_ModifyTemporaryEditedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.ModifyTemporaryEditedRecord_TemplateId))
                    {
                        this.Selector_ModifyTemporaryEditedRecord_TemplateId.Text = this._templateSettings.ModifyTemporaryEditedRecord_TemplateId;
                    }
                    this.Selector_CancelTemporaryEditedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.CancelTemporaryEditedRecord_TemplateId == str)
                    {
                        this.Selector_CancelTemporaryEditedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.CancelTemporaryEditedRecord_TemplateId))
                    {
                        this.Selector_CancelTemporaryEditedRecord_TemplateId.Text = this._templateSettings.CancelTemporaryEditedRecord_TemplateId;
                    }
                    this.Selector_ModifyTemporaryAddedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.ModifyTemporaryAddedRecord_TemplateId == str)
                    {
                        this.Selector_ModifyTemporaryAddedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.ModifyTemporaryAddedRecord_TemplateId))
                    {
                        this.Selector_ModifyTemporaryAddedRecord_TemplateId.Text = this._templateSettings.ModifyTemporaryAddedRecord_TemplateId;
                    }
                    this.Selector_CancelTemporaryAddedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.CancelTemporaryAddedRecord_TemplateId == str)
                    {
                        this.Selector_CancelTemporaryAddedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.CancelTemporaryAddedRecord_TemplateId))
                    {
                        this.Selector_CancelTemporaryAddedRecord_TemplateId.Text = this._templateSettings.CancelTemporaryAddedRecord_TemplateId;
                    }
                    this.Selector_RemoveTemporaryAddedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.RemoveTemporaryAddedRecord_TemplateId == str)
                    {
                        this.Selector_RemoveTemporaryAddedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.RemoveTemporaryAddedRecord_TemplateId))
                    {
                        this.Selector_RemoveTemporaryAddedRecord_TemplateId.Text = this._templateSettings.RemoveTemporaryAddedRecord_TemplateId;
                    }
                    this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.UndeleteTemporaryDeletedRecord_TemplateId == str)
                    {
                        this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.UndeleteTemporaryDeletedRecord_TemplateId))
                    {
                        this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Text = this._templateSettings.UndeleteTemporaryDeletedRecord_TemplateId;
                    }
                    num++;
                }
            }
            else
            {
                this.Selector_TemplateId.Text = this._templateSettings.TemplateId;
                this.Selector_EditTemplateId.Text = this._templateSettings.EditTemplateId;
                this.Selector_HeaderTemplateID.Text = this._templateSettings.HeaderTemplateId;
                this.Selector_FilterTemplateID.Text = this._templateSettings.FilterTemplateId;
                this.Selector_GroupHeaderTemplateId.Text = this._templateSettings.GroupHeaderTemplateId;
                this.Selector_ModifyTemporaryEditedRecord_TemplateId.Text = this._templateSettings.ModifyTemporaryEditedRecord_TemplateId;
                this.Selector_CancelTemporaryEditedRecord_TemplateId.Text = this._templateSettings.CancelTemporaryEditedRecord_TemplateId;
                this.Selector_ModifyTemporaryAddedRecord_TemplateId.Text = this._templateSettings.ModifyTemporaryAddedRecord_TemplateId;
                this.Selector_CancelTemporaryAddedRecord_TemplateId.Text = this._templateSettings.CancelTemporaryAddedRecord_TemplateId;
                this.Selector_RemoveTemporaryAddedRecord_TemplateId.Text = this._templateSettings.RemoveTemporaryAddedRecord_TemplateId;
                this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Text = this._templateSettings.UndeleteTemporaryDeletedRecord_TemplateId;
            }
            this.Selector_RowEditTemplateControlPropertyName.Items.Add("value");
            this.Selector_RowEditTemplateControlPropertyName.Items.Add("checked");
            this.Selector_RowEditTemplateControlId.Text = this._templateSettings.RowEditTemplateControlId;
            this.Selector_RowEditTemplateControlPropertyName.Text = this._templateSettings.RowEditTemplateControlPropertyName;
            this.Chk_RowEditTemplateUseQuotes.Checked = this._templateSettings.RowEditTemplateUseQuotes;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this._templateSettings.CancelTemporaryAddedRecord_TemplateId = this.Selector_CancelTemporaryAddedRecord_TemplateId.Text;
            this._templateSettings.CancelTemporaryEditedRecord_TemplateId = this.Selector_CancelTemporaryEditedRecord_TemplateId.Text;
            this._templateSettings.EditTemplateId = this.Selector_EditTemplateId.Text;
            this._templateSettings.FilterTemplateId = this.Selector_FilterTemplateID.Text;
            this._templateSettings.GroupHeaderTemplateId = this.Selector_GroupHeaderTemplateId.Text;
            this._templateSettings.HeaderTemplateId = this.Selector_HeaderTemplateID.Text;
            this._templateSettings.ModifyTemporaryAddedRecord_TemplateId = this.Selector_ModifyTemporaryAddedRecord_TemplateId.Text;
            this._templateSettings.ModifyTemporaryEditedRecord_TemplateId = this.Selector_ModifyTemporaryEditedRecord_TemplateId.Text;
            this._templateSettings.RemoveTemporaryAddedRecord_TemplateId = this.Selector_RemoveTemporaryAddedRecord_TemplateId.Text;
            this._templateSettings.RowEditTemplateControlId = this.Selector_RowEditTemplateControlId.Text;
            this._templateSettings.RowEditTemplateControlPropertyName = this.Selector_RowEditTemplateControlPropertyName.Text;
            this._templateSettings.RowEditTemplateUseQuotes = this.Chk_RowEditTemplateUseQuotes.Checked;
            this._templateSettings.TemplateId = this.Selector_TemplateId.Text;
            this._templateSettings.UndeleteTemporaryDeletedRecord_TemplateId = this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Text;
            base.Invalidate(false);
            base.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this._templateSettings = null;
            base.Invalidate(false);
            base.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Process.Start("http://www.vdc.com/");
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.BtnOk = new Button();
            this.BtnCancel = new Button();
            this.label1 = new Label();
            this.Selector_TemplateId = new ComboBox();
            this.Selector_EditTemplateId = new ComboBox();
            this.label2 = new Label();
            this.groupBox1 = new GroupBox();
            this.label7 = new Label();
            this.Selector_HeaderTemplateID = new ComboBox();
            this.groupBox2 = new GroupBox();
            this.label5 = new Label();
            this.Selector_FilterTemplateID = new ComboBox();
            this.label6 = new Label();
            this.Selector_GroupHeaderTemplateId = new ComboBox();
            this.groupBox3 = new GroupBox();
            this.Selector_RowEditTemplateControlId = new TextBox();
            this.Chk_RowEditTemplateUseQuotes = new CheckBox();
            this.label3 = new Label();
            this.label4 = new Label();
            this.label8 = new Label();
            this.Selector_RowEditTemplateControlPropertyName = new ComboBox();
            this.groupBox4 = new GroupBox();
            this.label13 = new Label();
            this.Selector_RemoveTemporaryAddedRecord_TemplateId = new ComboBox();
            this.label14 = new Label();
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId = new ComboBox();
            this.label9 = new Label();
            this.Selector_ModifyTemporaryAddedRecord_TemplateId = new ComboBox();
            this.label12 = new Label();
            this.Selector_CancelTemporaryAddedRecord_TemplateId = new ComboBox();
            this.label10 = new Label();
            this.Selector_ModifyTemporaryEditedRecord_TemplateId = new ComboBox();
            this.label11 = new Label();
            this.Selector_CancelTemporaryEditedRecord_TemplateId = new ComboBox();
            this.button3 = new Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            base.SuspendLayout();
            this.BtnOk.Location = new Point(0x2a, 0x1d0);
            this.BtnOk.Name = "BtnOk";
            this.BtnOk.Size = new Size(0x65, 0x22);
            this.BtnOk.TabIndex = 0;
            this.BtnOk.Text = "OK";
            this.BtnOk.UseVisualStyleBackColor = true;
            this.BtnOk.Click += new System.EventHandler(this.button1_Click);
            this.BtnCancel.Location = new Point(0xa3, 0x1d0);
            this.BtnCancel.Name = "BtnCancel";
            this.BtnCancel.Size = new Size(0x5e, 0x22);
            this.BtnCancel.TabIndex = 2;
            this.BtnCancel.Text = "Cancel";
            this.BtnCancel.UseVisualStyleBackColor = true;
            this.BtnCancel.Click += new System.EventHandler(this.button2_Click);
            this.label1.AutoSize = true;
            this.label1.Location = new Point(0x19, 0x2c);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x4c, 0x11);
            this.label1.TabIndex = 3;
            this.label1.Text = "View Mode";
            this.Selector_TemplateId.FormattingEnabled = true;
            this.Selector_TemplateId.Location = new Point(0x9a, 0x25);
            this.Selector_TemplateId.Name = "Selector_TemplateId";
            this.Selector_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_TemplateId.TabIndex = 4;
            this.Selector_EditTemplateId.FormattingEnabled = true;
            this.Selector_EditTemplateId.Location = new Point(0x9a, 0x52);
            this.Selector_EditTemplateId.Name = "Selector_EditTemplateId";
            this.Selector_EditTemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_EditTemplateId.TabIndex = 6;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(0x19, 0x59);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x47, 0x11);
            this.label2.TabIndex = 5;
            this.label2.Text = "Edit Mode";
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.Selector_HeaderTemplateID);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.Selector_TemplateId);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.Selector_EditTemplateId);
            this.groupBox1.Location = new Point(0x2f, 12);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(0x146, 0xa7);
            this.groupBox1.TabIndex = 11;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Templates for View/Edit";
            this.label7.AutoSize = true;
            this.label7.Location = new Point(0x19, 0x84);
            this.label7.Name = "label7";
            this.label7.Size = new Size(0x37, 0x11);
            this.label7.TabIndex = 7;
            this.label7.Text = "Header";
            this.Selector_HeaderTemplateID.FormattingEnabled = true;
            this.Selector_HeaderTemplateID.Location = new Point(0x9a, 0x7d);
            this.Selector_HeaderTemplateID.Name = "Selector_HeaderTemplateID";
            this.Selector_HeaderTemplateID.Size = new Size(0xa2, 0x18);
            this.Selector_HeaderTemplateID.TabIndex = 8;
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.Selector_FilterTemplateID);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.Selector_GroupHeaderTemplateId);
            this.groupBox2.Location = new Point(0x195, 12);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new Size(0x178, 0xa7);
            this.groupBox2.TabIndex = 12;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Templates for Filtering/Grouping";
            this.label5.AutoSize = true;
            this.label5.Location = new Point(0x19, 40);
            this.label5.Name = "label5";
            this.label5.Size = new Size(0x27, 0x11);
            this.label5.TabIndex = 3;
            this.label5.Text = "Filter";
            this.Selector_FilterTemplateID.FormattingEnabled = true;
            this.Selector_FilterTemplateID.Location = new Point(0xca, 0x25);
            this.Selector_FilterTemplateID.Name = "Selector_FilterTemplateID";
            this.Selector_FilterTemplateID.Size = new Size(0xa2, 0x18);
            this.Selector_FilterTemplateID.TabIndex = 4;
            this.label6.AutoSize = true;
            this.label6.Location = new Point(0x19, 0x6b);
            this.label6.Name = "label6";
            this.label6.Size = new Size(0x63, 0x11);
            this.label6.TabIndex = 5;
            this.label6.Text = "Group Header";
            this.Selector_GroupHeaderTemplateId.FormattingEnabled = true;
            this.Selector_GroupHeaderTemplateId.Location = new Point(0xca, 0x68);
            this.Selector_GroupHeaderTemplateId.Name = "Selector_GroupHeaderTemplateId";
            this.Selector_GroupHeaderTemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_GroupHeaderTemplateId.TabIndex = 6;
            this.groupBox3.Controls.Add(this.Selector_RowEditTemplateControlId);
            this.groupBox3.Controls.Add(this.Chk_RowEditTemplateUseQuotes);
            this.groupBox3.Controls.Add(this.label3);
            this.groupBox3.Controls.Add(this.label4);
            this.groupBox3.Controls.Add(this.label8);
            this.groupBox3.Controls.Add(this.Selector_RowEditTemplateControlPropertyName);
            this.groupBox3.Location = new Point(0x2f, 0xcc);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new Size(0x146, 0xa7);
            this.groupBox3.TabIndex = 13;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Settings for Row Edit Template";
            this.Selector_RowEditTemplateControlId.Location = new Point(0x9a, 0x2c);
            this.Selector_RowEditTemplateControlId.Name = "Selector_RowEditTemplateControlId";
            this.Selector_RowEditTemplateControlId.Size = new Size(0xa2, 0x16);
            this.Selector_RowEditTemplateControlId.TabIndex = 9;
            this.Chk_RowEditTemplateUseQuotes.AutoSize = true;
            this.Chk_RowEditTemplateUseQuotes.Location = new Point(0x9a, 0x84);
            this.Chk_RowEditTemplateUseQuotes.Name = "Chk_RowEditTemplateUseQuotes";
            this.Chk_RowEditTemplateUseQuotes.Size = new Size(15, 14);
            this.Chk_RowEditTemplateUseQuotes.TabIndex = 8;
            this.Chk_RowEditTemplateUseQuotes.UseVisualStyleBackColor = true;
            this.label3.AutoSize = true;
            this.label3.Location = new Point(0x19, 0x81);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x4f, 0x11);
            this.label3.TabIndex = 7;
            this.label3.Text = "UseQuotes";
            this.label4.AutoSize = true;
            this.label4.Location = new Point(0x19, 0x2c);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x42, 0x11);
            this.label4.TabIndex = 3;
            this.label4.Text = "ControlID";
            this.label8.AutoSize = true;
            this.label8.Location = new Point(0x19, 0x56);
            this.label8.Name = "label8";
            this.label8.Size = new Size(0x63, 0x11);
            this.label8.TabIndex = 5;
            this.label8.Text = "PropertyName";
            this.Selector_RowEditTemplateControlPropertyName.FormattingEnabled = true;
            this.Selector_RowEditTemplateControlPropertyName.Location = new Point(0x9a, 0x52);
            this.Selector_RowEditTemplateControlPropertyName.Name = "Selector_RowEditTemplateControlPropertyName";
            this.Selector_RowEditTemplateControlPropertyName.Size = new Size(0xa2, 0x18);
            this.Selector_RowEditTemplateControlPropertyName.TabIndex = 6;
            this.groupBox4.Controls.Add(this.label13);
            this.groupBox4.Controls.Add(this.Selector_RemoveTemporaryAddedRecord_TemplateId);
            this.groupBox4.Controls.Add(this.label14);
            this.groupBox4.Controls.Add(this.Selector_UndeleteTemporaryDeletedRecord_TemplateId);
            this.groupBox4.Controls.Add(this.label9);
            this.groupBox4.Controls.Add(this.Selector_ModifyTemporaryAddedRecord_TemplateId);
            this.groupBox4.Controls.Add(this.label12);
            this.groupBox4.Controls.Add(this.Selector_CancelTemporaryAddedRecord_TemplateId);
            this.groupBox4.Controls.Add(this.label10);
            this.groupBox4.Controls.Add(this.Selector_ModifyTemporaryEditedRecord_TemplateId);
            this.groupBox4.Controls.Add(this.label11);
            this.groupBox4.Controls.Add(this.Selector_CancelTemporaryEditedRecord_TemplateId);
            this.groupBox4.Location = new Point(0x195, 0xcc);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new Size(0x178, 0x126);
            this.groupBox4.TabIndex = 14;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Buttons for Multi-Record Add/Edit/Delete";
            this.label13.AutoSize = true;
            this.label13.Location = new Point(0x19, 0xd4);
            this.label13.Name = "label13";
            this.label13.Size = new Size(0x9b, 0x11);
            this.label13.TabIndex = 11;
            this.label13.Text = "Remove Added Record";
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.Location = new Point(0xca, 0xd1);
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.Name = "Selector_RemoveTemporaryAddedRecord_TemplateId";
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_RemoveTemporaryAddedRecord_TemplateId.TabIndex = 12;
            this.label14.AutoSize = true;
            this.label14.Location = new Point(0x19, 0xff);
            this.label14.Name = "label14";
            this.label14.Size = new Size(0x91, 0x11);
            this.label14.TabIndex = 13;
            this.label14.Text = "Undo Deleted Record";
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Location = new Point(0xca, 0xfc);
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Name = "Selector_UndeleteTemporaryDeletedRecord_TemplateId";
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_UndeleteTemporaryDeletedRecord_TemplateId.TabIndex = 14;
            this.label9.AutoSize = true;
            this.label9.Location = new Point(0x19, 0x7e);
            this.label9.Name = "label9";
            this.label9.Size = new Size(0x90, 0x11);
            this.label9.TabIndex = 7;
            this.label9.Text = "Modify Added Record";
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.Location = new Point(0xca, 0x7b);
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.Name = "Selector_ModifyTemporaryAddedRecord_TemplateId";
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_ModifyTemporaryAddedRecord_TemplateId.TabIndex = 8;
            this.label12.AutoSize = true;
            this.label12.Location = new Point(0x19, 0xa9);
            this.label12.Name = "label12";
            this.label12.Size = new Size(0x92, 0x11);
            this.label12.TabIndex = 9;
            this.label12.Text = "Cancel Added Record";
            this.Selector_CancelTemporaryAddedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_CancelTemporaryAddedRecord_TemplateId.Location = new Point(0xca, 0xa6);
            this.Selector_CancelTemporaryAddedRecord_TemplateId.Name = "Selector_CancelTemporaryAddedRecord_TemplateId";
            this.Selector_CancelTemporaryAddedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_CancelTemporaryAddedRecord_TemplateId.TabIndex = 10;
            this.label10.AutoSize = true;
            this.label10.Location = new Point(0x19, 40);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x8f, 0x11);
            this.label10.TabIndex = 3;
            this.label10.Text = "Modify Edited Record";
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.Location = new Point(0xca, 0x25);
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.Name = "Selector_ModifyTemporaryEditedRecord_TemplateId";
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_ModifyTemporaryEditedRecord_TemplateId.TabIndex = 4;
            this.label11.AutoSize = true;
            this.label11.Location = new Point(0x19, 0x53);
            this.label11.Name = "label11";
            this.label11.Size = new Size(0x91, 0x11);
            this.label11.TabIndex = 5;
            this.label11.Text = "Cancel Edited Record";
            this.Selector_CancelTemporaryEditedRecord_TemplateId.FormattingEnabled = true;
            this.Selector_CancelTemporaryEditedRecord_TemplateId.Location = new Point(0xca, 80);
            this.Selector_CancelTemporaryEditedRecord_TemplateId.Name = "Selector_CancelTemporaryEditedRecord_TemplateId";
            this.Selector_CancelTemporaryEditedRecord_TemplateId.Size = new Size(0xa2, 0x18);
            this.Selector_CancelTemporaryEditedRecord_TemplateId.TabIndex = 6;
            this.button3.Location = new Point(0x115, 0x1d0);
            this.button3.Name = "button3";
            this.button3.Size = new Size(0x6f, 0x22);
            this.button3.TabIndex = 15;
            this.button3.Text = "More Info ...";
            this.button3.UseVisualStyleBackColor = true;
            this.button3.Click += new System.EventHandler(this.button3_Click);
            base.AutoScaleDimensions = new SizeF(8f, 16f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x331, 0x219);
            base.Controls.Add(this.button3);
            base.Controls.Add(this.groupBox4);
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox1);
            base.Controls.Add(this.BtnCancel);
            base.Controls.Add(this.BtnOk);
            base.Name = "ColumnTemplateSettingsSetupControl";
            this.Text = "Template Settings";
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            base.ResumeLayout(false);
        }

        public ColumnTemplateSettings TemplateSettings
        {
            get
            {
                return this._templateSettings;
            }
            set
            {
                if (this._templateSettings != value)
                {
                    this._templateSettings = value;
                }
            }
        }
    }
}

